package com.xbongbong.paas.pojo.vo;

import com.xbongbong.pro.enums.DistributorMarkEnum;
import com.xbongbong.pro.enums.SaasMarkEnum;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 经销商地图
 */
@Getter
@Setter
@ToString
public class DistributorMapVO implements Serializable{

    private static final long serialVersionUID = -878745471946349154L;

    private String province;
    private String city;
    private String district;

    private String name;
    private String distributorName;
    private Long dataId;
    private String num;
    private Integer saasMark;
    private Integer businessType;
    private Integer distributorMark;
    private Double longitude;
    private Double latitude;
    /**
     * 散点图时使用，外层VO只保存经纬度，返回数据存这里，为了根据经纬度分组
     */
    private List<DistributorMapVO> scatterData;

    public DistributorMapVO() {
        this.saasMark = SaasMarkEnum.SAAS.getCode();
        this.businessType = XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode();
        this.distributorMark = DistributorMarkEnum.DISTRIBUTOR.getCode();
    }
}
